#include <iostream>

void LinearSearch(int n_array[],int search);

int main() {
	using namespace std;
	int arry[] = {12,7,98,46};
	LinearSearch(arry,7);

	//system("PAUSE");
	return 0;
}

void LinearSearch(int n_array[], int search) {
	using namespace std;
	bool found = false;
	int array_size = sizeof(n_array)/sizeof(int);
	int index = 0;
	while (!found && index < array_size) {
		if (n_array[index] == search) {
			cout << " :AUTHENTICATION VALIDATED!: "<< endl;
			found = true;

		} 

	} 
	cout << " :UNATHORIZED ENTRY!: " << endl;
	index ++;
}

